package com.qiall.omsserver.data.mapper;

import com.qiall.omsserver.data.entity.DubboServiceInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DubboServiceInfoMappr {
    void insert(DubboServiceInfo dubboServiceInfo);
    void delete(@Param("id") Integer id);
    List<DubboServiceInfo> selectByApplicationName(@Param("applicationName") String applicationName);
    DubboServiceInfo select(@Param("id")Integer id);
    void deleteByApplicationNameAndIp(@Param("ip") String ip,@Param("applicationName") String applicationName);
    List<DubboServiceInfo> selectByServiceAndGroup(@Param("service") String service,@Param("group")String group,@Param("version")String version);
    List<DubboServiceInfo> selectByPage(@Param("dubboServiceInfo") DubboServiceInfo dubboServiceInfo,@Param("offset") int offset,@Param("limit") int limit );
   int count(@Param("dubboServiceInfo") DubboServiceInfo dubboServiceInfo);
   void update( DubboServiceInfo dubboServiceInfo);
}
